package org.jiajie.coffeecodes.sp.context;

import org.jiajie.coffeecodes.sp.beans.BeansException;
import org.jiajie.coffeecodes.sp.beans.factory.Aware;

/**
 * Interface to be implemented by any object that wishes to be notified of the {@link ApplicationContext}
 * that it runs in.
 * 实现此接口，既能感知到所属的 ApplicationContext
 *
 * @author jay
 */
public interface ApplicationContextAware extends Aware {

    void setApplicationContext(ApplicationContext applicationContext) throws BeansException;

}
